/*
 ============================================================================
 Name		: EasyBounceDocument.cpp
 Author	  : 
 Copyright   : Zhao Xizhe, Si Wei, Song Yupeng
 Description : CEasyBounceDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "EasyBounceAppUi.h"
#include "EasyBounceDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CEasyBounceDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CEasyBounceDocument* CEasyBounceDocument::NewL(CEikApplication& aApp)
	{
	CEasyBounceDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CEasyBounceDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CEasyBounceDocument* CEasyBounceDocument::NewLC(CEikApplication& aApp)
	{
	CEasyBounceDocument* self = new (ELeave) CEasyBounceDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CEasyBounceDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CEasyBounceDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CEasyBounceDocument::CEasyBounceDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CEasyBounceDocument::CEasyBounceDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CEasyBounceDocument::~CEasyBounceDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CEasyBounceDocument::~CEasyBounceDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CEasyBounceDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CEasyBounceDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CEasyBounceAppUi;
	}

// End of File
